package com.bytezero.login_test.home;

import com.bytezero.login_test.bean.BaseBean;
import com.bytezero.login_test.bean.Goods;

import java.util.List;

import io.reactivex.rxjava3.core.Flowable;

/**
 * @author Bytezero_zhenglei!
 * @package com.bytezero.login_test.home
 * @fileName
 * @data 2022/1/28 16:31
 * @description
 * @TODO
 * @email 420498246@qq.com
 */
public interface HomeContract {
     interface IHomePresenter{

        void getData();
     }
    interface  IHomeModel{
        Flowable<BaseBean<List<Goods>>> getData();

    }
    interface IHomeView{
        void getGoodsSucess(List<Goods> goods);
        void getGoodsError(Throwable throwable);
    }
}
